﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using Krist_em_up.Components;

namespace Krist_em_up.Music
{
    
    class selecteur : Sprite
    {
        Texture2D texture1, texture2;
        Son son;
        public selecteur(Kristemup agame, Son songPlayed)
        {
            game = agame;
            son = songPlayed;

        }
        public new void LoadContent()
        {
            texture1 = game.Content.Load<Texture2D>("flecheD");
            texture2 = game.Content.Load<Texture2D>("flecheG");
        }
        public new void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();
            spriteBatch.Draw(texture1, new Rectangle(60,0,50,50), Color.White);
            spriteBatch.Draw(texture2, new Rectangle(5,0,50,50), Color.White);
            spriteBatch.End();
        }
        public void Update(Souris souris)
        {
            if ((souris.LeftClicked()) && (souris.getCoord().Y > 0) && (souris.getCoord().Y < 40) 
                && (souris.getCoord().X>0) && (souris.getCoord().X < 50))
            {
                //on incremente
            }
            else if ((souris.LeftClicked()) && (souris.getCoord().Y > 0) && (souris.getCoord().Y < 40)
                && (souris.getCoord().X > 60) && (souris.getCoord().X < 100))
            {
                //on decremente
            }

        }


        
      
    }
}
